###########
USE_MAKEFILE_DATE_TIME = y
ifeq ($(strip $(USE_MAKEFILE_DATE_TIME)),y)
EXTRA_CFLAGS += -Wno-error=date-time
EXTRA_CFLAGS += -Wno-date-time
EXTRA_CFLAGS += -DENABLE_MAKEFILE_DATE_TIME
endif

EXTRA_CFLAGS += -g

KERNEL_DIR = /lib/modules/`uname -r`/build

MODULE_NAME = module_param_drv
obj-m := $(MODULE_NAME).o 

modules:
	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules

clean distclean:
	rm -f *.o *.mod.c .*.*.cmd *.ko .*.o.d *.mod
	rm -rf .tmp_versions modules.order Module.symvers

